home *** CD-ROM | disk | FTP | other *** search
Makefile | 2002-06-15 | 3.0 KB | 113 lines |
- #
- # $Id: makefile.vbcc68k,v 1.1.1.1 2000/04/07 19:44:48 tfrieden Exp $
- #
- # $Author: tfrieden $
- #
- # $Date: 2000/04/07 19:44:48 $
- # $Revision: 1.1.1.1 $
- #
- # Makefile for vbcc AmigaOS/68k by Frank Wille
- #
- # (C) 1999 by Hyperion Software
- # All rights reserved
- #
- # This file is part of the MiniGL library project
- # See the file Licence.txt for more details
- #
- #
-
- INCLUDE = -Iinclude
- #OF note: for my (OF) PF() and PUTS() macros
-
-
- CFLAGS = -O2 -speed -cpu=603 -maxoptpasses=20 -c99 $(INCLUDE) $(DEBUG)
-
- #OF added -lauto for gears powerpc.library/GetSysTimePPC() etc.
- LIBS = -lppcmath -lm -lmgl -lextra -lamiga -lauto
- LIBNAME = vlibwos:mgl.lib
- DIR = Build.ppc
- EXENAME = GLTestWOS
- EXESRC = src/GLTest.c
-
- DEMOS = mtexWOS varrayWOS varray2WOS warpWOS gears_nostat_WOS gearsWOS rasonlyWOS driverinfoWOS GLTestWOS
-
- CC=vc +warposdb_warpos
- #CC=vc +warposdb_m68k
- AR=join as
-
- LIBOBJ = $(DIR)/kprintf.o $(DIR)/init.o $(DIR)/glu.o \
- $(DIR)/fog.o $(DIR)/others.o $(DIR)/texture.o \
- $(DIR)/context.o $(DIR)/matrix.o $(DIR)/draw.o \
- $(DIR)/clip.o $(DIR)/buf.o $(DIR)/array.o $(DIR)/aclip.o \
- $(DIR)/elements.o
-
- all: $(LIBNAME) $(DEMOS)
-
- install:
- copy include/mgl/#?.h vincludewos:mgl/
-
- clean:
- delete force quiet $(DIR)/#?.o GLtestWOS
-
- lib: $(LIBNAME)
- @echo "Done"
-
- $(EXENAME): $(EXESRC) $(LIBNAME)
- $(CC) $(CFLAGS) -o $@ $< $(LIBS)
-
- # Implicit rule to build each demo (when the name match)
- %WOS : demos/%.c $(LIBNAME)
- $(CC) $(CFLAGS) -o $@ $< $(LIBS)
-
- driverinfoWOS: demos/driverinfo.c $(LIBNAME)
- $(CC) $(CFLAGS) -o driverinfoWOS demos/driverinfo.c $(LIBS)
-
- warpWOS: demos/warp.c $(LIBNAME)
- $(CC) $(CFLAGS) -o warpWOS demos/warp.c $(LIBS)
-
- varrayWOS: demos/varray_new.c $(LIBNAME)
- $(CC) $(CFLAGS) -o varrayWOS demos/varray_new.c $(LIBS)
-
- varray2WOS: demos/varray.c $(LIBNAME)
- $(CC) $(CFLAGS) -o varray2WOS demos/varray.c $(LIBS)
-
- gearsWOS: demos/gears_stats.c $(LIBNAME)
- $(CC) $(CFLAGS) -o gearsWOS demos/gears_stats.c $(LIBS)
-
- gears_nostat_WOS: demos/gears.c $(LIBNAME)
- $(CC) $(CFLAGS) -o gears_nostat_WOS demos/gears.c $(LIBS)
-
- mtexWOS: demos/mtex.c $(LIBNAME)
- $(CC) $(CFLAGS) -o mtexWOS demos/mtex.c $(LIBS)
-
- rasonlyWOS: demos/rasonly.c $(LIBNAME)
- $(CC) $(CFLAGS) -o rasonlyWOS demos/rasonly.c $(LIBS)
-
-
- $(LIBNAME): $(LIBOBJ)
- $(AR) $(LIBNAME) $(LIBOBJ)
-
- INCS = src/sysinc.h include/mgl/clip.h include/mgl/config.h \
- include/mgl/context.h include/mgl/gl.h include/mgl/log.h \
- include/mgl/matrix.h include/mgl/minigl.h include/mgl/vertexbuffer.h
-
- # MiniGL modules whose names don't match:
- $(DIR)/elements.o: src/vertexelements.c $(INCS)
- $(CC) $(CFLAGS) -c -o $@ $<
- $(DIR)/array.o: src/vertexarray.c $(INCS)
- $(CC) $(CFLAGS) -c -o $@ $<
- $(DIR)/clip.o: src/hclip.c $(INCS)
- $(CC) $(CFLAGS) -c -o $@ $<
-
- $(DIR)/buf.o: src/vertexbuffer.c $(INCS)
- $(CC) $(CFLAGS) -c -o $@ $<
- $(DIR)/matrix.o: src/matrix.c $(INCS)
- $(CC) $(CFLAGS) -c -o $@ $<
- $(DIR)/texture.o: src/texture.c $(INCS)
- $(CC) $(CFLAGS) -c -o $@ $<
-
- # Implicit rule to build each module of MiniGL (when the name match)
- $(DIR)/%.o : src/%.c $(INCS)
- $(CC) $(CFLAGS) -c -o $@ $<
-
-